<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-type-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">电机型号名称：</label>
                <div class="col-sm-8">
                    <input name="motorTypeName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机型号编号：</label>
                <div class="col-sm-8">
                    <input name="motorTypeNumber" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机种类：</label>
                <div class="form-group">
                    <div class="col-sm-5">
                        <select class="form-control" name="motorVariety">
                            <option value="">所有</option>
                            <option value="直流">直流</option>
                            <option value="异步">异步</option>
                            <option value="永磁同步">永磁同步</option>
                            <option value="开关磁阻">开关磁阻</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机品牌名称：</label>
                <div class="col-sm-8">
                    <input name="motorBrandName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器型号：</label>
                <div class="col-sm-8">
                    <input name="controllerType" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器厂商：</label>
                <div class="col-sm-8">
                    <input name="controllerName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动机冷却方式：</label>
                <div class="col-sm-8">
                    <input name="motorCooling" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电压：</label>
                <div class="col-sm-8">
                    <input name="nominalVoltage" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电流：</label>
                <div class="col-sm-8">
                    <input name="nominalElectricity" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率：</label>
                <div class="col-sm-8">
                    <input name="nominalPower" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">峰值功率：</label>
                <div class="col-sm-8">
                    <input name="peakPower" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">有效比功率：</label>
                <div class="col-sm-8">
                    <input name="specificPower" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率转速：</label>
                <div class="col-sm-8">
                    <input name="revolvingSpeed" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最高转速：</label>
                <div class="col-sm-8">
                    <input name="maxRevolving" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机峰值转矩：</label>
                <div class="col-sm-8">
                    <input name="peakTorque" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最大输出转矩：</label>
                <div class="col-sm-8">
                    <input name="maxTorque" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="producerName" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/motortype"
        $("#form-type-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-type-add').serialize());
            }
        }
    </script>
</body>
</html>
